package org.ilead.iserve.common;

import java.util.HashMap;
import java.util.Map;

public class LoginFilterRegister {
	private static Map<String, Integer> filterMap = new HashMap<String, Integer>();
	
	public static void register(String url, int permission){
		filterMap.put(url, permission);
	}
	
	public static int getPermission(String url){
		if(filterMap.containsKey(url)){
			return filterMap.get(url);
		}
		return 0;
	}
}
